import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import error from '@dfeidao/atom-web/msgbox/error';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// 主档表名
	const tabname = fd.data.node.querySelector<HTMLInputElement>('#tabname').value;
	if (!tabname) {
		error('请先选择主表名');
		return;
	}
	fire('zj-000010', 'ec-001', {
		compen: 'zj-000002', event: 'a009', tabname
	});
}
